<header class="bar bar-nav">
    <a class="icon icon-menu pull-left open-panel"></a>
    <a class="icon icon-search pull-right userSearch"></a>
    <h1 class="title">{$title}</h1>
</header>
<script>
    $(document).on("click", ".userSearch", function () {
        $.prompt('输入会员卡号', '未还图书', function (value) {
            window.location.href = "{:U('Delivery/borrow')}" + '?card_id=' + value;
        });
    });
</script>